package book;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:何人亮
 * Date:2024-05-24
 * 21:12
 */
public class BookList {
    public Book[] books=new Book[10];
    public int SizdUsed;//书架上书的数量

    public Book getBooks(int pos) {
        return books[pos];
    }

    public void setBooks(Book books,int pos) {
        this.books[pos] = books;
    }

    public int getSizdUsed() {
        return SizdUsed;
    }

    public void setSizdUsed(int sizdUsed) {
        this.SizdUsed = sizdUsed;
    }

    public BookList() {
        //书架上目前放的书
        this.books[0]=new Book("红楼梦","曹雪芹",39,"小说");//书架上目前放的书
        this.books[1]=new Book("西游记","吴承恩",28,"小说");
        this.books[2]=new Book("水浒传","施耐庵",10,"小说");

        this.SizdUsed=3;//书的数量

    }
}
